home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 62
/
Volume 62 - JOGO DISK .iso
/
Games
/
penguinpass.swf
/
scripts
/
frame_24
/
PlaceObject2_86_76
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Wrap
Text File
|
2008-03-17
|
1KB
|
32 lines
onClipEvent(enterFrame){
if(_root.placeposition > 0 && _root.gotshape == false)
{
_root.placeposition = 0;
}
if(_root.placeposition > 0 && _root.gotshape == true && _root.board[_root.placeposition] == 0)
{
_root.fx.gotoAndPlay("click");
_root.board[_root.placeposition] = 1;
_root.cursorshape.gotoAndStop(1);
_root.gotshape = false;
_root["pos" + _root.placeposition].placeshape = _root.cursorshape.placeshape;
_root["pos" + _root.placeposition].gotoAndStop(2);
_root.nextshape.placeshape = _root["level" + _root.level][_root.turn];
_root.nextshape.gotoAndStop(2);
_root.turn = _root.turn + 1;
gs = _root["pos" + _root.placeposition].placeshape;
gy = _root.gy;
gx = _root.gx;
_root.grid[gy * 45 + gx * 3] = _root.block1[gs];
_root.grid[gy * 45 + (gx * 3 + 1)] = _root.block2[gs];
_root.grid[gy * 45 + (gx * 3 + 2)] = _root.block3[gs];
_root.grid[gy * 45 + 15 + gx * 3] = _root.block4[gs];
_root.grid[gy * 45 + 15 + (gx * 3 + 1)] = _root.block5[gs];
_root.grid[gy * 45 + 15 + (gx * 3 + 2)] = _root.block6[gs];
_root.grid[gy * 45 + 30 + gx * 3] = _root.block7[gs];
_root.grid[gy * 45 + 30 + (gx * 3 + 1)] = _root.block8[gs];
_root.grid[gy * 45 + 30 + (gx * 3 + 2)] = _root.block9[gs];
_root.populate();
}
}